package com.itSession.cn.entity;

import io.swagger.annotations.ApiModelProperty;

/**
 * @ClassName: UserInfo
 * @description: 用户
 * @author: hanP
 * @create: 2021-03-29 19:13:42
 */
public class UserInfo {
	/** 编号 */
	@ApiModelProperty(value = "编号")
	private Integer userId;
	/** 账号 */
	@ApiModelProperty(value = "账号")
	private String userAccount;
	/** 姓名 */
	@ApiModelProperty(value = "姓名")
	private String userName;
	/** 角色 1.老师 2.普通用户 */
	@ApiModelProperty(value = "角色")
	private String userRole;
	/** 密码 */
	@ApiModelProperty(value = "密码")
	private String userPwd;

	@ApiModelProperty(value = "头像")
	private String userImg;
	@ApiModelProperty(value = "学号")
	private String userNumber;
	@ApiModelProperty(value = "昵称")
	private String nickName;
	@ApiModelProperty(value = "性别")
	private String sex;
	@ApiModelProperty(value = "年龄")
	private String age;
	@ApiModelProperty(value = "爱好")
	private String hobby;
	@ApiModelProperty(value = "爱好")
	private String className;
	@ApiModelProperty(value = "爱好")
	private String majorName;

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public String getMajorName() {
		return majorName;
	}

	public void setMajorName(String majorName) {
		this.majorName = majorName;
	}

	public String getUserNumber() {
		return userNumber;
	}

	public void setUserNumber(String userNumber) {
		this.userNumber = userNumber;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getAge() {
		return age;
	}

	public void setAge(String age) {
		this.age = age;
	}

	public String getHobby() {
		return hobby;
	}

	public void setHobby(String hobby) {
		this.hobby = hobby;
	}

	public String getUserImg() {
		return userImg;
	}

	public void setUserImg(String userImg) {
		this.userImg = userImg;
	}


	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserAccount(String userAccount) {
		this.userAccount = userAccount;
	}

	public String getUserAccount() {
		return this.userAccount;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserName() {
		return this.userName;
	}

	public void setUserRole(String userRole) {
		this.userRole = userRole;
	}

	public String getUserRole() {
		return this.userRole;
	}

	public void setUserPwd(String userPwd) {
		this.userPwd = userPwd;
	}

	public String getUserPwd() {
		return this.userPwd;
	}


	@Override
	public boolean equals(Object o) {
		if (this == o) { return true; }
		if (o == null || getClass() != o.getClass()) {return false;}
		UserInfo that = (UserInfo) o;
		return userId.equals(that.userId);
	}

	public UserInfo() {
	}

	@Override
	public int hashCode() {
		return java.util.Objects.hash(userId);
	}

	@Override
	public String toString() {
		return "UserInfo{" +
				"userId=" + userId +
				",userAccount='" + userAccount + "'" +
				",userName='" + userName + "'" +
				",userRole='" + userRole + "'" +
				",userPwd='" + userPwd + "'" +
				'}';
	}

}